package likou.offer;

/**
 * @Info:
 * @Author: Tangxz
 * @Date: 2020/09/06 06:56
 */
public class _65 {
    public static void main(String[] args) {
        System.out.println(Integer.toBinaryString(1010));
        System.out.println(add(111,899));
    }
    public static int add(int a, int b) {
        System.out.println(Integer.toBinaryString(a)+"   "+Integer.toBinaryString(b));
        if(a==0){
            return b;
        }else if(b==0){
            return a;
        }
        int he = a^b;
        int he2 = (a&b)<<1;
        return add(he,he2);
    }
}
